// Add/remove floats.
.fr   { float:right !important; }
.fl   { float:left  !important; }
.fn   { float:none  !important; }
.text-align{text-align: center}
.clearfix{@include clearfix;}

.container {
  @include clearfix;
}

@font-face {
  font-family: 'SYHT';
  font-style: normal;
  font-weight: 100;
  src:  url('#{$font-path}/SHSCN-ELight.woff') format('woff');
}
/* ==============Bootstrap 网格系统输出========== */
.bs-row{
	@include clearfix;
	margin-left: -$grid-gutter-width / 2;
	margin-right: -$grid-gutter-width / 2;
	img{
		width: 100%;
	}
}

@include make-grid-columns;

@include make-grid(xs);

.bar{
	&.bar-subheader{
		&.item-input{
			height: $bar-height ;
			padding: 5px 10px;
			.item-input-wrapper{
				background: #fff;
				border-radius: 0;
				border-bottom: none;
			}
		}
	}
	.title{
		font-size: 16px;
	}
}
.no-header{
	.nav-bar-container{
		display: none ;
	}
	.has-header{
		top: 0;
	}
}
.has-header\+ , .bar-subheader + .has-header{
	top: $bar-height * 2
}

.bar{
	&.bar-header{
		background-image: none;
	}
	&.bar-subheader{
		&.item-input{
			height: $bar-height ;
			padding: 5px 10px;
			.item-input-wrapper{
				background: #fff;
				border-radius: 0;
				border-bottom: none;
			}
		}
	}
	.button-block{
		margin: 0;
	}
}

.header-col{
	box-shadow: $bs;
	padding: 0;
	position: relative;
	z-index: 9999;
	.col{
		padding: 0 5px;
		text-align: center;
		line-height: $bar-height;
		color: #666;
		text-decoration: none;
		&.activated{
			background-color: #eee;
		}
		.mdi-unfold-more{
			font-size: 16px;
			vertical-align: middle;
			color: #666;
		}
	}
    + ion-content{
        margin-top: -2px
    }
}

.xq-title-center{
	text-align: center;
	font-size: 18px;
	color: #333;
	margin: 0;
	padding: 15px 0 5px;
}

.xq-text-sm{
	margin: 0 0 15px;
	font-size: 12px;
	color: #999;
	span{
		margin-left: 5px;
	}
	i{
		margin-right: 5px;
	}
}
.icon-l{
	font-size: inherit;
	color: #999;
	margin-right: 5px;
}
ol{
	list-style-type: decimal ;
	padding-left: 25px;
    li{
        color: #666;
        line-height: 1.8;
        font-size: 12px;
    }
}
/* slider */
.pic-slider {
	width: 100%;
	.slide{
		display: block;
		width: 100%;
		img{
			display: block;
			width: 100%;
		}
	}
	.slider-pager {
		bottom: 10px;
		.slider-pager-page {
			color: #fff;
			.icon {
				font-size: 12px;
			}
			&.active{
				color: $positive
			}
		}
	}
}
p.texts{
	padding: 10px;
	background: #fff;
	border: solid $borderColor;
	border-width: 1px 0 1px;
	font-size: 12px;
	color: #666;
}
.list{
	margin: 0 ;
	&:first-child{
		margin-top: -1px;
	}
	.item{
		border-color: $borderColor;
        font-size: 14px;
        background: #fff;
		&.activated{
			background: darken($bg, 2%);
		}
		&.item-complex{
			padding:0 !important;
			.item-content{
				padding-right: 16px;
				&.activated{
					background: #f0f0f0
				}
			}
		}
		&.item-dark{
			background: $dark;
			border-color: $dark;
			color: lighten($dark, 55%);
			h2{
				color: lighten($dark, 55%)
			}
			p{
				color: lighten($dark, 40%)
			}
		}
		&.item-divider{
			font-weight: normal;
			/* color: $positive; */
			background: $bg;
		}
		&.item-icon-right{
			padding-right: 32px ;
			&.item-complex{
				.item-content{
					padding-right: 32px;
				}
			}
			.icon:last-child{
				font-size: 24px;
				color: #ccc;
				right: 0;
			}
			.icon-btn{
				@include right-middle(0);
				color: $positive;
				padding: 10px 15px;
				border-left: 1px solid $borderColor;
				font-size: 24px;
				text-decoration: none;
				&.activated{
					opacity: .8;
				}
			}
		}

		&.item-icon-left{
			padding-left: 48px;
			.icon:first-child{
				font-size: 24px;
				color: #666
			}
		}

		&.item-avatar{

		}
		&.lg-avatar{
			padding-left: 100px;
			img.img-lg{
				max-width: 80px;
				max-height: 80px;
				width: 80px;
				height: 80px;
				left: 10px;
			}
		}
		&.sm-avatar{
			min-height: 50px;
			&:not(.item-complex){
				padding-left: 60px;
				padding-top: 5px;
				padding-bottom: 5px;
			}
			&.item-complex{
				.item-content{
					padding-left: 60px;
					padding-top: 10px;
					padding-bottom: 10px;
				}
			}

			img:first-child{
				top: 5px;
				max-width: 36px;
				max-height: 36px;
				width: 36px;
				height: 36px;
				left: 10px;
			}
			p{
				font-size: 12px;
			}
            &.only-title{
                h2{
                    line-height: 38px;
                    margin: 0
                }
            }
		}
		&.item-thumbnail-left{
			&:not(.item-complex){
				min-height: 100px;
				padding-left:  100px;
                padding-top: 10px;
                padding-bottom: 10px;
			}

			&.item-complex{
				.item-content{
                    padding-top: 10px;
                    padding-bottom: 10px;
					min-height: 100px;
					padding-left:100px;
				}
			}
			&.thum-lg{
				> img:first-child,
				.item-content > img:first-child{
					width: 120px;
	                max-width: 120px;
				}
			}

            &.thum-auto-height{
                &,
                .item-content{
                    min-height: 70px;
                }
                > img:first-child,
    			.item-content > img:first-child{
                    height: auto !important;
                    min-height: 50px !important
                }
            }
            &.item-thumbnail-sm{
            	min-height: 70px;
            	&:not(.item-complex),
            	.item-content{
            	    padding-left: 65px;
            	    min-height: 70px;
            	    padding-bottom: 8px;
            	}
            	img:first-child,
            	.item-content > img:first-child{
            		@include thumb-size(48px)
            	}
            }
		}
		&.item-input{
			background: #fff;
			.icon-label{
				font-size: 24px;
				width: 20%
			}
			&.has-btn{
                // padding-right: 80px;
				.button{
					@include right-middle(10px);
				}
			}
			.input-label{
				width: 25%;
				font-size: 14px;
				color: #222;
				position: relative;
				border-right: 1px solid $borderColor;
			}
			input{
				padding: 0 30px 0 10px;
			}
			.dw{
				@include right-middle(10px);
			}
		}
		&.item-body{
			p{
				margin-top: 0;
			}
		}
        @at-root{
            .add-btn{
            	display: inline-block;
            	position: relative;
            	border: dashed 1px #ddd;
            	width: 80px;
            	height: 80px;
            	&:after,&:before{
            		content: "";
            		background: #ddd;
            		position: absolute;
            	}
            	&:after{
					width: 4px;
            		height: 40px;
            		margin-left: -2px;
            		left: 50%;
            		top: 20px;
            	}
            	&:before{
            		width: 40px;
            		height: 4px;
            		margin-top: -2px;
            		top: 50%;
            		left: 20px;
            	}
            	input{
            		width: 100%;
            		height: 100%;
            		opacity: 0;
            	}
            }
        }
        .badge{
            padding: 2px 6px;
        }


        .input-label{
            font-size: 12px;
            color: #333;
        }
		h2{
			font-size: 14px;
            color: #333;
            line-height: 1.5;
            small{
            	line-height: 20px;
                font-size: 12px;
                margin-left: 10px;
                color: #999;
            }
			// @include ellipsis-more(2);
		}
		p{
			font-size: 12px;
			color: #888;
            line-height: 1.8;
            &:last-child{
                margin: 0;
            }
		}
		.info{
			color: #333;
			margin-bottom: 3px;
		}
		.label{
			border-radius: 2px;
			display: inline-block;
			padding: 1px 8px 0;
			font-size: 12px;
		}
		.rtop{
			position: absolute;
			right: 10px;
			top: 0;
		}
	}
}

.modal-backdrop.active .modal-backdrop-bg{
	opacity: 0 !important;
}
.avatar{
	@include circular(60px);
	overflow: hidden;
	img{
		width: 100%;
		height: 100%;
	}
}
.card{
	margin: 10px;
	box-shadow: 0px 0px 1px rgba(#000, .2);
	.item{
		font-size: 14px;
		&.item-text-wrap{
			line-height: 1.5;
			p{
				color: #999;
				margin-bottom: 5px;
			}
			h5{
				color: #333;
				font-size: 14px;
				font-weight: bold;
			}
		}
	}
	&.full-width{
		margin: 10px 0;
		box-shadow: none;

		.item{
            border-radius: 0;
			&:first-child,&:last-child{
				border: 1px solid $borderColor
			}
		}
	}
	h3{
		margin: 0;
		font-size: 14px;
	}
	p{
		margin: 5px 0;
		color: #999;
		font-size: 12px;
	}
}
.badge{
    font-weight:normal;
    font-size: 12px;
    line-height: 1;
    padding: 3px 8px;
    &.rt{
        position:absolute;
        right:0;
        top:0;
    }
    .tab-item & {
    	right: 10px;
    }
}

.labels{
	padding: 10px;

	span{
		display: inline-block;
		line-height: 1;
		padding: 3px 8px;
		background: #fff;
		border: 1px solid #dcdcdc;
		color: #666;
		font-size: 12px;
		border-radius: 10px;
	}
	.list &{
		padding: 0;
		span{
			padding: 2px 6px;
		}
	}
}

.header-wrap{
    position: relative;
    .search-bar{
        z-index: 99;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 44px;
        line-height: 44px;
        color: #fff;
        font-size: 14px;
        &.left-avt{
            padding-left: 50px;
            img{
                @include circular(30px);
                @include left-middle(10px);
            }
        }
        input{
            background: rgba(#000,.3);
            color: #fff;
            padding: 0 12px;
            height:28px;
            border-radius: 20px;
            border: none;
            @include right-middle(10px);
        }
        .icon{
            @include right-middle(20px);
            font-size: 18px;
            color: #fff;
            margin-top: 1px;
        }

    }
}

.line1{
	@include ellipsis;
}
.line2{
	@include ellipsis-more(2);
}
.line3{
	@include ellipsis-more(3);
}
.title-bar{
	background: #fff;
	box-shadow: 0 1px 2px rgba(#000, .12);
	margin: 10px -1px;
	padding: 0 16px;
	color: $positive;
	.title{
		height: 48px;
		line-height: 48px;
		display: inline-block;
		border-bottom: 2px solid $positive;
	}
}
.pst-rt{
	position: absolute;
	right: 10px;
	top: 0;
}
.lb{
	display: inline-block;
	font-size: 12px;
	color: #fff;
	padding: 2px 8px;
	line-height: 1;
}
div.lb{
	display: block;
}
.row{
    &.no-padding{
        padding: 0;
        .col{
            padding: 0;
        }
    }
    &.img-row{
    	margin: 0;
    	.col{
    		padding:0 5px !important;
    		img{
    			width: 100%
    		}
    	}
    }
    .button-block{
    	margin: 0;
    }
}
.icon-row{
	padding: 15px 0;
	margin: 0 ;
	border-bottom: 1px solid $borderColor;
	[class^="col"]{
		text-align: center;
		text-decoration: none;
		color: #999;
		padding: 0;
        margin-bottom: 10px;
        a{
            display: block;
        }
		i{
			font-size: 24px;
			display: inline-block;
			color: #fff;
			@include circular(48px);
		}
		.label{
			margin-top: 5px;
			font-size: 12px;
			display: block;
			color: #333;
		}
	}
	&.no-border{
		i{
			color: #999;
			border: none;
			font-size: 24px;
			@include circular(32px);
		}
		.label{
			color: #666
		}
	}
	&.nine-grid{
		padding: 0;
		box-shadow: 0 1px 0 rgba(#000, .08) inset;
		border-bottom-color: #fff;
		li{
			margin: 0;
			box-shadow: 1px 1px 0 rgba(#000, .08);
			a{
				padding: 20px 5px;
				i{
					font-size: 32px;
					width: auto;
					height: auto;
					line-height: 1;
				}
			}
		}
	}
}
.bg-grey{
	background-color: #F8F5F2;
}

.labels{
	padding: 10px;

	span{
		display: inline-block;
		line-height: 1;
		padding: 3px 8px;
		background: #fff;
		border: 1px solid #dcdcdc;
		color: #666;
		font-size: 12px;
		border-radius: 10px;
	}
	.list &{
		padding: 0;
		span{
			padding: 2px 6px;
		}
	}
}



/* 文字 */
.t-sm{
	font-size: 12px !important;
}
.t-md{
	font-size: 14px !important;
}
.fs-xs,.item-note{
	font-size: 12px;
}
.bold{
	font-weight: bold;
}
p.ps-info{
	font-size: 14px;
	color: #999;
	line-height: 1.5
}
h3{
	font-size: 18px;
	font-weight: normal;
}

.line2{
	@include ellipsis-more(2);
}


.img-wrap{
	position: relative;
	img{
		width: 100%;
		display: block;
	}
	&.img-center{
		padding: 15px ;
		text-align: center;
		img{
			display: inline-block;
			width: 50%;
		}
		h5{
			margin: 5px 0 0;
			font-size: 12px;
			color: #666;
		}
	}
	.t-bar{
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(#000, .5);
		color: #fff;
		padding: 8px;
		font-size: 12px;
	}
}
hr{
	border-top: 1px solid #eee;
}

.number-set{
    max-width: 100px;
    .button{
        min-height: 16px;
        height: 32px;
        line-height: 30px;
        font-size: 16px;
        padding: 0 5px;
        min-width: 20px;
        color: #666;
        box-shadow: none;
        border-color: #ddd;
    }
    span{
        background: #fff !important;
        box-shadow: none
    }
}



.row.list-row{
	// padding: 5px;
	border-bottom: 1px solid $borderColor;
	background: #fff;
	.col{
		text-align: center;
		color: $positive;
		padding: 0 5px;
		.num{
			font-size: 20px;
			font-family: 'SYHT',Arial;
			margin-bottom: 5px
		}
		p{
			padding: 0;
			font-size: 12px;
			color: #999;
			margin: 0;
			@include ellipsis;
		}
		+ .col{
			border-left: 1px solid $borderColor
		}
		&.active{
			position: relative;
			&:after{
				content: "";
				position: absolute;
				left: -1px;
				right: -1px;
				bottom: -5px;
				height: 3px;
				background: $red-400;
			}
		}
	}
}


.right-middle{
	@include right-middle(10px);
}

.left-middle{
	@include left-middle(10px);
	position: absolute !important;
}

